package com.ruoyi.web.controller.admin;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.dto.XsOrderDto;
import com.ruoyi.system.service.IXsStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 统计Controller
 */
@RestController
@RequestMapping("/system/statistics")
public class XsStatisticsController extends BaseController {

    @Autowired
    private IXsStatisticsService xsStatisticsService;

    /**
     * 获得统计
     * @return
     */
    @GetMapping()
    public AjaxResult getStatistics(XsOrderDto orderDto) {
        return success(xsStatisticsService.statistics(orderDto));
    }


}